package cn.bqjr.eily.samples.entity.po;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author _Hill3
 * @since 2017-07-12
 */
@TableName("sys_login_log")
public class LoginLog implements Serializable {
    private static final long serialVersionUID = -8361760095574399118L;

    @TableId
	private Long logId;
    /**
     * 登录IP
     */
	private String hostAdress;
    /**
     * 用户Id
     */
	private Long userId;
    /**
     * 登录会话Id
     */
	private String sessionId;
	private Date loginDate;
	private Date logoutDate;
    /**
     * 登出登入间隔时间，秒
     */
	private Integer intervalSec;


	public Long getLogId() {
		return logId;
	}

	public LoginLog setLogId(Long logId) {
		this.logId = logId;
		return this;
	}

	public String getHostAdress() {
		return hostAdress;
	}

	public LoginLog setHostAdress(String hostAdress) {
		this.hostAdress = hostAdress;
		return this;
	}

	public Long getUserId() {
		return userId;
	}

	public LoginLog setUserId(Long userId) {
		this.userId = userId;
		return this;
	}

	public String getSessionId() {
		return sessionId;
	}

	public LoginLog setSessionId(String sessionId) {
		this.sessionId = sessionId;
		return this;
	}

	public Date getLoginDate() {
		return loginDate;
	}

	public LoginLog setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
		return this;
	}

	public Date getLogoutDate() {
		return logoutDate;
	}

	public LoginLog setLogoutDate(Date logoutDate) {
		this.logoutDate = logoutDate;
		return this;
	}

	public Integer getIntervalSec() {
		return intervalSec;
	}

	public LoginLog setIntervalSec(Integer intervalSec) {
		this.intervalSec = intervalSec;
		return this;
	}

	public static final String LOGID = "logId";

	public static final String HOSTADRESS = "hostAdress";

	public static final String USERID = "userId";

	public static final String SESSIONID = "sessionId";

	public static final String LOGINDATE = "loginDate";

	public static final String LOGOUTDATE = "logoutDate";

	public static final String INTERVALSEC = "intervalSec";

	@Override
	public String toString() {
		return "LoginLog{" +
			"logId=" + logId +
			", hostAdress=" + hostAdress +
			", userId=" + userId +
			", sessionId=" + sessionId +
			", loginDate=" + loginDate +
			", logoutDate=" + logoutDate +
			", intervalSec=" + intervalSec +
			"}";
	}
}
